###########################################
# Simple Makefile for HIDAPI test program
#
# Alan Ott
# Signal 11 Software
# 2010-07-03
#
# plus (untested) Simple Makefile for beepBgone utility
###########################################

all: beepBgone

CC=gcc
COBJS=hid.o ../beepBgone/beepBgone.o
OBJS=$(COBJS)
CFLAGS+=-I../hidapi -Wall -g
LIBS=-framework IOKit -framework CoreFoundation

beepBgone: $(OBJS)
	$(CC) -Wall -g $^ $(LIBS) -o beepBgone

$(COBJS): %.o: %.c
	$(CC) $(CFLAGS) -c $< -o $@

clean:
	rm -f *.o beepBgone $(OBJS)

.PHONY: clean

